<template>
     
  <van-tabbar
    class="apps"
    v-model="active"
    v-show="this.$route.meta.showTab !== false"
  >
    <van-tabbar-item  icon="home-o" to="/">首页</van-tabbar-item>
    <van-tabbar-item icon="search" to="/bill">订单</van-tabbar-item>
    <van-tabbar-item v-isLogin to="/cart" icon="friends-o" >购物车</van-tabbar-item>
    <van-tabbar-item 
    v-isLogin="{
     action: to,
     path:'/user'
    }" icon="setting-o" >我的</van-tabbar-item>
    <!-- to="/user" -->
  </van-tabbar>
</template>

<script>
export default {
  data() {
    //   console.log(this.$route.meta.showTab);
    return {
      active: 0,
    };
  },
  created() {},
  methods: {
    to(path){
      this.$router.push(path)
    }
  },
  components: {},
};
</script>

<style lang='scss' scoped>
</style>
